package com.cpi.cornpp.instructionsattachment.form;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.cornpp.instructionsattachment.view.InstructionAttachmentView;

public class InstructionAttachmentForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8149779480977303592L;
	
	private InstructionAttachmentView view;
	
	private List attachments;

	public List getAttachments() {
		return attachments;
	}

	public void setAttachments(List attachments) {
		this.attachments = attachments;
	}

	public InstructionAttachmentView getView() {
		return view;
	}

	public void setView(InstructionAttachmentView view) {
		this.view = view;
	}
	
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {		
		this.view = null;
		this.view = new InstructionAttachmentView();
		this.attachments = null;
		this.attachments = new ArrayList(0);
	}
	
}
